package com.b2b.model.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.stereotype.Component;

import javax.persistence.Column;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;

@Data
@Component
@Table(name = "bidding_record")
public class BiddingRecord implements Serializable {
    private static final long serialVersionUID = 3342723124953988435L;

    @Column(name = "company_id")
    private Integer companyId;

    @Column(name = "bidding_id")
    private Integer biddingId;

    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @Column(name = "bidding_time")
    private Date biddingTime;

    @Column(name = "bidding_price")
    private Integer biddingPrice;
}
